{extend name="common:base" /}

{block name="page_current"}
<div class="fui-page-group statusbar">
    <style>
        .fui-icon-col.external.before:before{
            content: '';
            position: absolute;
            top: 1rem;
            bottom: 1rem;
            left: 0;
            width: 1px;
            background-color: #ebebeb;
            display: block;
            z-index: 15;
        }
    </style>
    <div class="fui-page fui-page-current">
        <div class="fui-header">
            <div class="fui-header-left">
                <a class="back" href="javascript:history.back()"></a>
            </div>
            <div class="title">会员中心</div>
            <div class="fui-header-right"></div>
        </div>
        <div class="fui-content member-page navbar">
            <div style="overflow: hidden;height: 7.5rem;position: relative;background: #fff">
                <div class="headinfo" style="z-index:100;border: none;">
                    <div class="child">
                        <!--
                        <div class="title">金币</div>
                        <div class="num">9,896.20</div>
                        <a href="./index.php?i=1&amp;c=entry&amp;m=ewei_shopv2&amp;do=mobile&amp;r=member.recharge"><div class="btn">充值</div></a>
                        -->
                    </div>
                    <div class="child userinfo">
                        <a href="{:url('Member/info')}" data-nocache="true" style="color: white;">
                            <div class="face"><img src="{$memberModel['avatar']}" onerror="this.src='__STATIC__/imgs/noface.png'"></div>
                            <div class="name">{$memberModel['nickname']}</div>
                        </a>
                        <div class="level">
                            [普通会员]
                        </div>
                    </div>

                    <div class="child">
                        <!--
                        <div class="title">积分</div>
                        <div class="num">9,000</div>
                        <a href="./index.php?i=1&amp;c=entry&amp;m=ewei_shopv2&amp;do=mobile&amp;r=creditshop" class="external"><div class="btn">兑换</div></a>
                        -->
                    </div>
                </div>
                <div class="member_header"></div>
            </div>
            <div class="fui-cell-group fui-cell-click" style="margin-top: 0">
                <a class="fui-cell external" href="{:url('Order/index')}">
                    <div class="fui-cell-icon"><i class="icon icon-dingdan1"></i></div>
                    <div class="fui-cell-text">我的订单</div>
                    <div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
                </a>
                <div class="fui-icon-group selecter col-3">
                    <a class="fui-icon-col external" href="{:url('Order/index',['status'=>1])}">
                        {if($myOrderStatusNum['1'] > 0)}
                        <div class="badge">{$myOrderStatusNum['1']}</div>
                        {/if}
                        <div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
                        <div class="text">待付款</div>
                    </a>
                    <a class="fui-icon-col external" href="{:url('Order/index',['status'=>2])}">
                        {if($myOrderStatusNum['2'] > 0)}
                        <div class="badge">{$myOrderStatusNum['2']}</div>
                        {/if}
                        <div class="icon icon-orange radius"><i class="icon icon-daifahuo1"></i></div>
                        <div class="text">待发货</div>
                    </a>
                    <a class="fui-icon-col external" href="{:url('Order/index',['status'=>3])}">
                        {if($myOrderStatusNum['3'] > 0)}
                        <div class="badge">{$myOrderStatusNum['3']}</div>
                        {/if}
                        <div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
                        <div class="text">待收货</div>
                    </a>
                    <!--
                    <a class="fui-icon-col external" href="./index.php?i=1&amp;c=entry&amp;m=ewei_shopv2&amp;do=mobile&amp;r=order&amp;status=4">
                        <div class="icon icon-pink radius"><i class="icon icon-daituikuan2"></i></div>
                        <div class="text">退换货</div>
                    </a>
                    -->
                </div>
            </div>
            <div class="fui-cell-group fui-cell-click">
                <!--
                <a class="fui-cell" href="./index.php?i=1&amp;c=entry&amp;m=ewei_shopv2&amp;do=mobile&amp;r=member.cart">
                    <div class="fui-cell-icon"><i class="icon icon-cart"></i></div>
                    <div class="fui-cell-text"><p>我的购物车</p></div>
                    <div class="fui-cell-remark"><span class="badge">3</span></div>
                </a>
                -->
                <!--
                <a class="fui-cell" href="./index.php?i=1&amp;c=entry&amp;m=ewei_shopv2&amp;do=mobile&amp;r=member.favorite">
                    <div class="fui-cell-icon"><i class="icon icon-like"></i></div>
                    <div class="fui-cell-text"><p>我的关注</p></div>
                    <div class="fui-cell-remark"><span class="badge">1</span></div>
                </a>
                <a class="fui-cell" href="./index.php?i=1&amp;c=entry&amp;m=ewei_shopv2&amp;do=mobile&amp;r=member.history">
                    <div class="fui-cell-icon"><i class="icon icon-footprint"></i></div>
                    <div class="fui-cell-text"><p>我的足迹</p></div>
                    <div class="fui-cell-remark"></div>
                </a>
                -->
            </div>
            <div class="fui-cell-group fui-cell-click">
                <a class="fui-cell" href="{:url('Member/address')}">
                    <div class="fui-cell-icon"><i class="icon icon-dingwei1"></i></div>
                    <div class="fui-cell-text"><p>收货地址管理</p></div>
                    <div class="fui-cell-remark"></div>
                </a>
            </div>

            {if(!is_weixin())}
            <div class="fui-cell-group fui-cell-click transparent">
                <a class="fui-cell external changepwd" href="{:url('Member/change_pwd')}">
                    <div class="fui-cell-text" style="text-align: center;"><p>修改密码</p></div>
                </a>
                <a class="fui-cell external btn-logout" href="javascript:logout();">
                    <div class="fui-cell-text" style="text-align: center;"><p>退出登录</p></div>
                </a>
            </div>
            <script>
                function logout() {
                    FoxUI.confirm('确认退出登录吗？', function () {
                        core.json("{:url('Member/logout')}", {}, function (ret) {
                            FoxUI.toast.show('退出成功')
                            setTimeout(function () {
                                location.reload();
                            },1500)
                        }, true, true)
                    })
                }
            </script>
            {/if}
        </div>
    </div>
    {include file="common/footer_bar_nav" /}
</div>
{/block}
